import config from "@/config"
import http from "@/utils/request"

export default {
    log: {
        list: {
            url: `${config.API_URL}/v1/monitor/log/list`,
            name: "获取菜单",
            get: async function(data){
                return await http.post(this.url, data);
            }
        },
        detail: {
            url: `${config.API_URL}/v1/monitor/log/detail`,
            name: "获取菜单",
            get: async function(data){
                return await http.post(this.url, data);
            }
        },
    },
    task: {
        all: {
            url: `${config.API_URL}/v1/monitor/task/all`,
            name: "获取菜单",
            get: async function(data){
                return await http.post(this.url, data);
            }
        },
        create: {
            url: `${config.API_URL}/v1/monitor/task/create`,
            name: "获取菜单",
            get: async function(data){
                return await http.post(this.url, data);
            }
        },
        update: {
            url: `${config.API_URL}/v1/monitor/task/update`,
            name: "获取菜单",
            get: async function(data){
                return await http.post(this.url, data);
            }
        },
        delete: {
            url: `${config.API_URL}/v1/monitor/task/delete`,
            name: "获取菜单",
            get: async function(data){
                return await http.post(this.url, data);
            }
        },
        active: {
            url: `${config.API_URL}/v1/monitor/task/active`,
            name: "获取菜单",
            get: async function(data){
                return await http.post(this.url, data);
            }
        },
        run: {
            url: `${config.API_URL}/v1/monitor/task/run`,
            name: "获取菜单",
            get: async function(data){
                return await http.post(this.url, data);
            }
        },
    },
    os: {
        detail: {
            url: `${config.API_URL}/v1/monitor/os/detail`,
            name: "获取菜单",
            get: async function(data){
                return await http.post(this.url, data);
            }
        }
    },
    cache: {
        admin: {
            all: {
                url: `${config.API_URL}/v1/monitor/cache/admin/all`,
                name: "获取菜单",
                get: async function(data){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/v1/monitor/cache/admin/delete`,
                name: "获取菜单",
                get: async function(data){
                    return await http.post(this.url, data);
                }
            }
        },
        user: {
            get: {
                url: `${config.API_URL}/v1/monitor/cache/user/get`,
                name: "获取菜单",
                get: async function(data){
                    return await http.post(this.url, data);
                }
            }
        }
    }
}
